package com.baojiaren.controller;

import com.baojiaren.pojo.Product;
import com.baojiaren.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ✎ℳ๓₯㎕.倾心❀、
 * @create 2021-07-14-23:36
 */
@RestController
@RequestMapping("/product")
public class ProductController {

    @Autowired
    private ProductService productService;

    @GetMapping("/list")
    public List<Product> selectProductList(){

        return  productService.selectProductList();
    }
}
